package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ErpOutboundOrderDetailMapper;
import com.ruoyi.domain.ErpOutboundOrderDetail;
import com.ruoyi.service.IErpOutboundOrderDetailService;

/**
 * 出库单明细Service业务层处理
 * 
 * @author zhp
 * @date 2025-08-19
 */
@Service
public class ErpOutboundOrderDetailServiceImpl implements IErpOutboundOrderDetailService 
{
    @Autowired
    private ErpOutboundOrderDetailMapper erpOutboundOrderDetailMapper;

    /**
     * 查询出库单明细
     * 
     * @param id 出库单明细主键
     * @return 出库单明细
     */
    @Override
    public ErpOutboundOrderDetail selectErpOutboundOrderDetailById(Long id)
    {
        return erpOutboundOrderDetailMapper.selectErpOutboundOrderDetailById(id);
    }

    /**
     * 查询出库单明细列表
     * 
     * @param erpOutboundOrderDetail 出库单明细
     * @return 出库单明细
     */
    @Override
    public List<ErpOutboundOrderDetail> selectErpOutboundOrderDetailList(ErpOutboundOrderDetail erpOutboundOrderDetail)
    {
        return erpOutboundOrderDetailMapper.selectErpOutboundOrderDetailList(erpOutboundOrderDetail);
    }

    /**
     * 新增出库单明细
     * 
     * @param erpOutboundOrderDetail 出库单明细
     * @return 结果
     */
    @Override
    public int insertErpOutboundOrderDetail(ErpOutboundOrderDetail erpOutboundOrderDetail)
    {
        return erpOutboundOrderDetailMapper.insertErpOutboundOrderDetail(erpOutboundOrderDetail);
    }

    /**
     * 修改出库单明细
     * 
     * @param erpOutboundOrderDetail 出库单明细
     * @return 结果
     */
    @Override
    public int updateErpOutboundOrderDetail(ErpOutboundOrderDetail erpOutboundOrderDetail)
    {
        return erpOutboundOrderDetailMapper.updateErpOutboundOrderDetail(erpOutboundOrderDetail);
    }

    /**
     * 批量删除出库单明细
     * 
     * @param ids 需要删除的出库单明细主键
     * @return 结果
     */
    @Override
    public int deleteErpOutboundOrderDetailByIds(Long[] ids)
    {
        return erpOutboundOrderDetailMapper.deleteErpOutboundOrderDetailByIds(ids);
    }

    /**
     * 删除出库单明细信息
     * 
     * @param id 出库单明细主键
     * @return 结果
     */
    @Override
    public int deleteErpOutboundOrderDetailById(Long id)
    {
        return erpOutboundOrderDetailMapper.deleteErpOutboundOrderDetailById(id);
    }
}
